import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Register from '../views/register.vue'
import UserList from '../views/user-list.vue'
Vue.use(VueRouter)

const routes = [
  {path: '/',name: 'Home',redirect:'/register', component: Home},
  {path: '/register',name: 'register',component: Register},
  {path: '/userlist',name: 'UserList',component: UserList}
]

const router = new VueRouter({
  routes
})

export default router